package com.finance.borrower;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 借款人信息
 */
@Entity
@Table(name = "borrower_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BorrowerInfo implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 标识
     */
    private String code;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 账号
     */
    private String accountNumber;

    /**
     * 电话
     */
    private String phone;

    /**
     * 密码
     */
    private String password;

    /**
     * 角色标识
     */
    private String roleCode;




    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_ACCOUNT_NUMBER = "account_number";

    public static final String COL_PHONE = "phone";

    public static final String COL_PASSWORD = "password";

    public static final String COL_ROLE_CODE = "role_code";







    /**
     * 个人信息
     */
    @Transient
    private PersonalInfo personalInfo;

    /**
     * 实名认证
     */
    @Transient
    private CertificationInfo certificationInfo;

    /**
     * 银行卡信息
     */
    @Transient
    private BankCardInfo bankCardInfo;

    /**
     * 紧急联系人信息
     */
    @Transient
    private EmergencyContactInfo emergencyContactInfo;

    /**
     * 工作信息
     */
    @Transient
    private WorkInfo workInfo;

    /**
     * 用户信分信息
     */
    @Transient
    private UserCredit userCredit;

    /**
     * 信分变更信息
     */
    @Transient
    private CreditChange creditChange;



}